package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2019-03-11
 */
@TableName("t_templatemsg")
public class Templatemsg extends Model<Templatemsg> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private String tplid;
	private String tplcode;
	private String page;
	private String tplname;
	private String keyname1;
	private String keyname2;
	private String keyname3;
	private String keyname4;
	private String keyname5;

	private String keycode1;
	private String keycode2;
	private String keycode3;
	private String keycode4;
	private String keycode5;

	//是否一次订阅
	private Integer isonce;
	private Integer keysize;
	private Integer issystem;
	private Long mid;
	private Long mpid;
	private Long uid;
	private Date createtime;
	private Date modifytime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTplid() {
		return tplid;
	}

	public void setTplid(String tplid) {
		this.tplid = tplid;
	}

	public String getTplcode() {
		return tplcode;
	}

	public void setTplcode(String tplcode) {
		this.tplcode = tplcode;
	}

	public String getTplname() {
		return tplname;
	}

	public void setTplname(String tplname) {
		this.tplname = tplname;
	}

	public String getKeyname1() {
		return keyname1;
	}

	public void setKeyname1(String keyname1) {
		this.keyname1 = keyname1;
	}

	public String getKeyname2() {
		return keyname2;
	}

	public void setKeyname2(String keyname2) {
		this.keyname2 = keyname2;
	}

	public String getKeyname3() {
		return keyname3;
	}

	public void setKeyname3(String keyname3) {
		this.keyname3 = keyname3;
	}

	public String getKeyname4() {
		return keyname4;
	}

	public void setKeyname4(String keyname4) {
		this.keyname4 = keyname4;
	}

	public String getKeyname5() {
		return keyname5;
	}

	public void setKeyname5(String keyname5) {
		this.keyname5 = keyname5;
	}

	public String getKeycode1() {
		return keycode1;
	}

	public void setKeycode1(String keycode1) {
		this.keycode1 = keycode1;
	}

	public String getKeycode2() {
		return keycode2;
	}

	public void setKeycode2(String keycode2) {
		this.keycode2 = keycode2;
	}

	public String getKeycode3() {
		return keycode3;
	}

	public void setKeycode3(String keycode3) {
		this.keycode3 = keycode3;
	}

	public String getKeycode4() {
		return keycode4;
	}

	public void setKeycode4(String keycode4) {
		this.keycode4 = keycode4;
	}

	public String getKeycode5() {
		return keycode5;
	}

	public void setKeycode5(String keycode5) {
		this.keycode5 = keycode5;
	}

	public Integer getKeysize() {
		return keysize;
	}

	public void setKeysize(Integer keysize) {
		this.keysize = keysize;
	}

	public Integer getIssystem() {
		return issystem;
	}

	public void setIssystem(Integer issystem) {
		this.issystem = issystem;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public Integer getIsonce() {
		return isonce;
	}

	public void setIsonce(Integer isonce) {
		this.isonce = isonce;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Templatemsg{" +
			"id=" + id +
			", tplid=" + tplid +
			", tplcode=" + tplcode +
			", tplname=" + tplname +
			", keyname1=" + keyname1 +
			", keyname2=" + keyname2 +
			", keyname3=" + keyname3 +
			", keyname4=" + keyname4 +
			", keyname5=" + keyname5 +
			", keycode1=" + keycode1 +
			", keycode2=" + keycode2 +
			", keycode3=" + keycode3 +
			", keycode4=" + keycode4 +
			", keycode5=" + keycode5 +
			", keysize=" + keysize +
			", issystem=" + issystem +
			", mid=" + mid +
			", mpid=" + mpid +
			", uid=" + uid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}

}
